package gui.BeginDialogue;

import java.awt.Container;
import java.awt.FlowLayout;

import javax.swing.JLabel;
import javax.swing.JTextField;

public class Request extends Container {

	private static final long serialVersionUID = -1128785340701386655L;
	private JTextField text;
	public Request(String request){
		setLayout(new FlowLayout(FlowLayout.RIGHT));
		add( new JLabel(request));
		text = new JTextField(4);
		add(text);
	}
	
	public Request(String string, int i) {
		this(string);
		text.setText(i+"");
	}

	public String getText(){
		return text.getText();
	}
	
	public void setEditable(boolean b){
		text.setEditable(b);
	}
	
}
